﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ARS.PublicTool.FormsHelper
{
    /// <summary>
    /// ComboBox的项
    /// </summary>
    public class ControlListItem : System.Object
    {


        /// <summary>
        /// 值
        /// </summary>
        public string Value
        {
            get;
            set;
        }
        /// <summary>
        /// 显示的文本
        /// </summary>
        public string Text
        {
            get;
            set;
        }

        public ControlListItem(string value, string text)
        {
            this.Value = value;
            this.Text = text;
        }

        public ControlListItem()
        {

        }
        public override string ToString()
        {
            return Text;
        }

        //public override string ToString()
        //{

        //}
        //public override bool Equals(System.Object obj)
        //{
        //    if (this.GetType().Equals(obj.GetType()))
        //    {
        //        ListItem that = (ListItem)obj;
        //        return (this.m_sText.Equals(that.Value));
        //    }
        //    return false;
        //}
        //public override int GetHashCode()
        //{
        //    return this.m_sValue.GetHashCode(); ;
        //}

    }
}
